cmake_minimum_required(VERSION 3.4.1)

# now build app's shared lib
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")

add_library(gl2jni
            SHARED
            gl_code.cpp mosaic.cc)

# add lib dependencies
target_link_libraries(gl2jni
                      android
                      log
                      EGL
                      GLESv2)

# soundtouch
file(GLOB ST_SOURCE "./SoundTouch/*.cpp")
message("file ${ST_SOURCE}")
include_directories(./SoundTouch/include/)
add_library(soundtouch
        SHARED
        soundtouch-jni.cpp ${ST_SOURCE})
target_link_libraries(soundtouch
        android
        log)
